export interface ITodo {
   id: number,
   content: string,
   completed: boolean
}

export interface IState {
   todoList: ITodo[]
}

export interface IAction {
   type: ACTION_TYPE // 枚举形式
   payload: ITodo | number
}

export enum ACTION_TYPE{
   ADD_TODO = 'addTodo',
   REMOVE_TODO = 'removeTodo',
   TOGGLE_TODO = 'removeTodo'
}

